#!/usr/bin/python

import random
from math import *

def rw(n=1000):
	x=0.
	for i in range(n):
		r=random.random()
		if r < .5:
			x-=1
		else:
			x+=1
	return x
	
for i in range(10):
	x=rw()
	print '%20s %20s %20s' % (x, abs(x), sqrt(x**2))
			